optionsResult

inline suspend fun <T> HttpClient.optionsResult(urlString: String, noinline block: HttpRequestBuilder.() -> Unit = {}): Result<T>

Performs an HTTP OPTIONS request synchronously and returns the result as a Result of type T.

Return

Result representing the synchronous operation.

Parameters

urlString

The URL for the OPTIONS request.

block

Optional, allows customization of the request using HttpRequestBuilder.